import loading from "./loading.vue";
import Vue from 'vue';

let loadingConstru = Vue.extend(loading);

let Loading = (option)=>{
    let instance = new loadingConstru();
    
    instance.$mount(document.createElement('div'));
    document.body.appendChild(instance.$el);

    instance.show = true;
    instance.option = option;
    return instance;
}

export default Loading;